package api

import "beetle/internal/handler"

// 刷新缓存

// 清空缓存

func registCacheOperation(app *App) {
	api := app.Application().Party("/cache")
	{
		hanler := handler.NewRedisOPHandler(redisOpService)
		api.Post("/refresh", hanler.Refresh)
		api.Post("/clear", hanler.Clear)
	}
}
